<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<h2>个人中心</h2>
<ul id="leftMenu">
	<li menuName="msg" class="li1">消息中心</li>
    <li menuName="order" class="li2">预约管理</li>
    <c:if test="${user.host != null}">
<!--     <li menuName="quote" class="li3">报价单</li> -->
    <li menuName="host" class="li7">汪星旅店</li>
    <li menuName="server" class="li8">服务项目管理</li>
    <li menuName="sevDate" class="li9">服务日历设置</li>
    <li menuName="photo" class="li6">照片管理</li>
    </c:if>
    <li menuName="info" class="li4">个人资料</li>
    <li menuName="pet" class="li5">我的狗狗</li>
    <li menuName="favorites" class="li10">我的收藏</li>
    <li menuName="manage" class="li11">帐户管理</li>
</ul>
<script type="text/javascript">
$(function(){
	var menuChecked = "${param['checked']}";
	$("#leftMenu li").click(function(){
		tools.href("/frame/" + $(this).attr("menuName") + ".do");
	});
	if(menuChecked != "") {
		var $checkedLi = $("#leftMenu li[menuName='" + menuChecked + "']");
		$checkedLi.attr("class", $checkedLi.attr("class") + "_h");//.unbind("click").addClass("noselect");
	}
});
</script>